package demo7;

public class QueueMain {
    public static void main(String[] args){
        Queue queue=new Queue();
        queue.offer(7);
        queue.offer(6);
        queue.offer(5);
        queue.offer(4);
        queue.offer(3);
        queue.display();
       int val= queue.poll();
       System.out.println("删除元素为："+val);
       int val2=queue.peek();
       System.out.println("获取的元素为："+val2);
    }
}
